package cn.getech.data.metadata.mapper;

import cn.getech.data.metadata.entity.meta.CollectionTaskLog;
import cn.getech.data.metadata.entity.meta.CollectionTaskLogExample;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Mapper
public interface CollectionTaskLogMapper extends BaseMapper<CollectionTaskLog> {
    IPage<CollectionTaskLog> selectListPage(Page<CollectionTaskLog> page,@Param("params") Map<String, Object> params);

    Map<String, Object> getConnectSource(@Param("sourceId") int sourceId);

    List<HashMap<String,Object>>  getDateSource(@Param("typeIds") List<Integer> typeIds,@Param("tenantId") Integer tenantId);

    List<String> getDateSourceDb(@Param("params") Map<String, Object> params);

    int deleteBatchIdsLogic(@Param("logIds") List<Long> logIds);
}